package com.kaikai.edu.mapper;

import com.kaikai.edu.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kaikai.edu.entity.frontvo.CourseFrontVo;
import com.kaikai.edu.entity.vo.CoursePublishVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author yujiankai
 * @since 2021-05-14
 */
@Repository
public interface EduCourseMapper extends BaseMapper<EduCourse> {
    CoursePublishVo getCoursePublishInfo(String courseId);

    CourseFrontVo getCourseWebInfo(String courseId);

    int ifExistCourseForTeacher(String teacherId);
}
